/**
 * 获取组件渲染的DOM根元素
 */

import Vue from "vue";
export default function (comp, props) {
  const vm = new Vue({
    render: (h) => h(comp, { props }),
  }).$mount();

  return vm.$el;
}